.order-detail-container {
  width: 100vw;
  height: 100%;
  padding-bottom: 50rpx;
  padding-bottom: calc(50rpx + constant(safe-area-inset-bottom));
  padding-bottom: calc(50rpx + env(safe-area-inset-bottom));
  background-color: #f6f6f6;

  .card {
    width: calc(100vw - 60rpx);
    height: fit-content;
    margin: 20rpx 30rpx;
    padding: 30rpx;
    background-color: #fff;
    border-radius: 30rpx;
  }

  .card-1 {
    .order-status-container {
      height: fit-content;
      text-align: center;

      .status {
        padding: 10rpx 0 20rpx 0;
        font-size: 36rpx;
        font-weight: bold;
      }

      .description {
        padding: 0 0 20rpx 0;
        font-size: 26rpx;
        color: #888;
      }

      .custom-btn {
        display: flex;
        flex-direction: row;
        justify-content: center;
        padding: 0 0 10rpx 0;

        .btn {
          width: fit-content;
          height: fit-content;
          padding: 10rpx 20rpx;
          font-size: 26rpx;
          background-color: #f4756b;
          border-radius: 100rpx;
          color: #fff;
          line-height: unset;
        }
      }
    }
  }

  .card-2 {
    .order-info-container {
      height: fit-content;

      .store-info {
        width: 100%;
        height: fit-content;
        display: flex;
        flex-direction: row;
        align-content: center;

        .store-image {
          width: 40rpx;
          height: 40rpx;
          border-radius: 100rpx;
          overflow: hidden;

          .image {
            width: 100%;
            height: 100%;
          }
        }

        .store-name {
          padding: 0 0 0 20rpx;
          font-size: 28rpx;
          line-height: 40rpx;
          color: #555;
        }

        .take-out {
          display: flex;
          flex-direction: column;
          justify-content: center;
          margin-left: auto;

          view:first-child {
            width: fit-content;
            height: fit-content;
            padding: 0 10rpx;
            font-size: 24rpx;
            color: #f4756b;
            border: 2rpx solid #f4756b;
            border-radius: 100rpx;
          }
        }
      }

      .commodity-info {
        width: 100%;
        height: fit-content;
        padding: 40rpx 0 0 0;

        .commodity-container {
          width: 100%;
          height: fit-content;
          margin-bottom: 50rpx;
          display: flex;
          flex-direction: row;

          .commodity-image-container {
            width: 15vw;
            height: 15vw;
            flex-shrink: 0;
            border-radius: 16rpx;
            overflow: hidden;

            .commodity-image {
              width: 100%;
              height: 100%;
              background-color: #f1f1f1;

              image {
                width: 100%;
                height: 100%;
              }
            }
          }

          .commodity-info-container {
            padding: 0 20rpx;
            white-space: nowrap;
            overflow: hidden;
            display: flex;
            flex-direction: column;

            .commodity-name {
              font-size: 30rpx;
              color: #444;
              text-overflow: ellipsis;
              overflow: hidden;
            }

            .commodity-description {
              margin-top: auto;
              font-size: 26rpx;
              color: #aaa;
              white-space: initial;
              overflow: initial;
            }
          }

          .commodity-price-container {
            flex-shrink: 0;
            margin-left: auto;
            padding-left: 30rpx;
            display: flex;
            flex-direction: column;
            text-align: right;

            .commodity-price {
              display: flex;
              flex-direction: row;
              line-height: 36rpx;

              .origin-price {
                margin-right: 10rpx;
                font-size: 26rpx;
                text-decoration: line-through;
                color: #aaa;
              }

              .discount-price {
                font-size: 30rpx;
                color: #333;
                font-weight: bold;
              }
            }

            .commodity-amount {
              margin-top: auto;
              font-size: 26rpx;
              color: #aaa;
            }
          }
        }

        .commodity-container:last-child {
          margin-bottom: 0;
        }

        .order-price-container {
          width: 100%;
          font-size: 28rpx;

          .row {
            display: flex;
            flex-direction: row;
            margin-top: 40rpx;

            .title {
              flex-shrink: 0;
              margin-right: 50rpx;
              color: #888;
            }

            .content {
              margin-left: auto;
              color: #333;
            }
          }

          .row:first-child {
            margin-top: 0;
          }

          .total-discount {
            .content {
              color: #f4756b;
            }
          }

          .total-price-container {
            width: 100%;
            margin-top: 30rpx;
            font-size: 28rpx;
            text-align: right;
            color: #555;

            .total-price-description {
              display: flex;
              flex-direction: row;
              width: fit-content;
              margin-left: auto;
              line-height: 50rpx;
            }

            .price {
              width: fit-content;
              margin-left: 10rpx;
              font-size: 38rpx;
              font-weight: bold;
              color: #333;
              line-height: 48rpx;
            }
          }
        }
      }
    }
  }

  .card-3 {
    .order-info-container {
      width: 100%;
      font-size: 28rpx;

      .row {
        display: flex;
        flex-direction: row;
        margin-top: 30rpx;

        .title {
          flex-shrink: 0;
          margin-right: 50rpx;
          color: #888;
        }

        .content {
          margin-left: auto;
          color: #333;
          text-align: right;
        }
      }

      .row:first-child {
        margin-top: 0;
      }

      .more-detail {
        .row:first-child {
          margin-top: 30rpx;
        }
      }

      .order-id {
        .content {
          display: flex;
          flex-direction: row;
          overflow: hidden;

          .id {
            padding-right: 10rpx;
            text-overflow: ellipsis;
            overflow: hidden;
            white-space: nowrap;
          }

          .fa {
            display: flex;
            flex-direction: column;
            justify-content: center;
            flex-shrink: 0;
            color: #888;
            font-size: 24rpx;
          }
        }
      }

      .show-more {
        display: flex;
        flex-direction: row;
        justify-content: center;
        margin-top: 30rpx;

        .text {
          padding-right: 10rpx;
          font-size: 26rpx;
          color: #999;
        }

        .fa {
          display: flex;
          flex-direction: column;
          justify-content: center;
          flex-shrink: 0;
          font-size: 28rpx;
          color: #999;
        }
      }
    }
  }

  .bottom-btn {
    width: 100%;
    justify-content: center;
    margin-top: 40rpx;
    border: 0;

    .more-action {
      width: 100%;
      font-size: 26rpx;
      color: #f4756b;
      text-align: center;
      margin-bottom: 30rpx;
    }

    .btn {
      width: fit-content;
      font-size: 26rpx;
      color: #f4756b;
      background-color: transparent;
      border-radius: 0;
      line-height: unset;
    }

    .btn::after{
      border: none;
    }
  }
}